package database;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

import constants.Constants;



	@Entity
	@Table(name = "t_feature")
	@Proxy(lazy = false)
public class MSpecialFeature {

	  private int id;
	  private String name;
	  private double value;
	  private String aditionalInfo;
	  private int specialFeatureId= Constants.NO_SPECIAL_FEATURE;
	  private MWorldObject objectReference;
	  
	  
	public String getName() {
		return name;
	}


	public void setName(String name) {
		this.name = name;
	}


	public double getValue() {
		return value;
	}


	public void setValue(double value) {
		this.value = value;
	}



	public void setId(int id) {
		this.id = id;
	}
	   	  

	  // ----------------------------------------

	public int getSpecialFeatureId() {
		return specialFeatureId;
	}


	public void setSpecialFeatureId(int specialFeatureId) {
		this.specialFeatureId = specialFeatureId;
	}

	@ManyToOne
	public MWorldObject getObjectReference() {
		return objectReference;
	}


	public void setObjectReference(MWorldObject objectReference) {
		this.objectReference = objectReference;
	}


	
	
	public String getAditionalInfo() {
		return aditionalInfo;
	}


	public void setAditionalInfo(String aditionalInfo) {
		this.aditionalInfo = aditionalInfo;
	}


	@Id
	  @GeneratedValue(strategy = GenerationType.AUTO)
	  public int getId() {
	    return id;
	  }
	
	
}
